home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWODMisc / Include / PRODGeom.h < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.1 KB  |  67 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                PRODGeom.h
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PRODGEOM_H
  11. #define PRODGEOM_H
  12.  
  13. #ifndef SLPTRECT_H
  14. #include "SLPtRect.h"
  15. #endif
  16.  
  17. //========================================================================================
  18. //    Forward Declarations
  19. //========================================================================================
  20.  
  21. class ODFrame;
  22. class ODShape;
  23. class ODTransform;
  24.  
  25. //========================================================================================
  26. //    Global Utilities
  27. //========================================================================================
  28.  
  29. // Export or Import functions for CFM-68K [sfu]
  30.  
  31. #if defined(FW_ODFLIB_IMPORT)
  32. #pragma import on
  33. #elif defined(FW_ODFLIB)
  34. #pragma export on
  35. #endif
  36.  
  37. FW_EXTERN_C_BEGIN
  38.  
  39. void              SL_API        FW_PrivSetShapeTransformMaker(Environment *ev, ODFrame* odFrame);
  40.  
  41. // ----- ODShape utilities -----
  42.  
  43. ODShape*          SL_API        FW_PrivNewODShape_Empty(Environment* ev);
  44. ODShape*        SL_API        FW_PrivNewODShape_Shape(Environment *ev, ODShape* otherShape);
  45. ODShape*        SL_API        FW_PrivNewODShape_Rect(Environment *ev, const FW_SRect& rect);
  46. ODShape*        SL_API        FW_PrivNewODShape_PlatformRect(Environment *ev, const FW_SPlatformRect& rect);
  47. ODShape*        SL_API        FW_PrivNewODShape_Region(Environment *ev, ODRgnHandle rgnHandleToAdopt);
  48.  
  49. // ----- ODTransform utilities -----
  50.  
  51. ODTransform*      SL_API        FW_PrivNewODTransform_Empty(Environment* ev);
  52. ODTransform*     SL_API        FW_PrivNewODTransform_Transform(Environment *ev, ODTransform* otherTransform);
  53. ODTransform*     SL_API        FW_PrivNewODTransform_Point(Environment *ev, const FW_SPoint& offset);
  54. ODTransform*     SL_API        FW_PrivNewODTransform_Point2(Environment *ev, const FW_SPoint& offset, const FW_SPoint& scale);
  55.  
  56. FW_EXTERN_C_END
  57.  
  58. // For CFM-68K [sfu]
  59.  
  60. #if defined(FW_ODFLIB_IMPORT)
  61. #pragma import off
  62. #elif defined(FW_ODFLIB)
  63. #pragma export off
  64. #endif
  65.  
  66. #endif // SLODGEOM_H
  67.